From: Jeremias Ortega Date: Tue, 14 Jul 2020 04:38:25 +0000 (-0600) Subject: extensionDownloader: Fix check for updates with several extensions X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~684^2^2~132 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=f0d2509dc34b88eedba43e4537d0d4e837347d54;p=gnome-shell.git extensionDownloader: Fix check for updates with several extensions When having several extensions installed checking for updates fails. This is because we are using GET and query params and since we are sending all the metadata of the extension the server returns 502 when the URL is too long. This error code is ignored safely. It is only needed to send the version of the extension to check if it has updates. Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2962 https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1363 --- diff --git a/js/ui/extensionDownloader.js b/js/ui/extensionDownloader.js index 90fc5a616..a7b40f973 100644 --- a/js/ui/extensionDownloader.js +++ b/js/ui/extensionDownloader.js @@ -139,7 +139,9 @@ function checkForUpdates() { return; if (extension.hasUpdate) return; - metadatas[uuid] = extension.metadata; + metadatas[uuid] = { + version: extension.metadata.version, + }; }); if (Object.keys(metadatas).length === 0)